/**
 * Created by jrocha on 9/18/14.
 */
public class Forth {
    public Forth(String message){
        this.message = message;
    }

    public void printMessage(){
        System.out.print(message);
    }

    public void timesTriangle(int times){
        for (int countLine = 1; countLine <= times; ++countLine){
            for(int countPrint = 0; countPrint < countLine; ++countPrint){
                printMessage();
            }
            System.out.println("");
        }
        System.out.println("");
    }

    private String message;
}
